package me.zhengjie.dao;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author laoxu
* @date 2025-06-26
**/
@Data
@TableName("iws_merge_task_record")
public class MergeTaskRecordDao implements Serializable {

    @TableId(value = "id")
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "任务单号")
    private String taskId;

    @ApiModelProperty(value = "物料条码")
    private String itemBarCode;

    @ApiModelProperty(value = "源点载具")
    private String containerSource;

    @ApiModelProperty(value = "终点载具")
    private String containerTarget;

    @ApiModelProperty(value = "物料重量")
    private String weight;

    @ApiModelProperty(value = "仓库")
    private String floor;

    @ApiModelProperty(value = "建单账号")
    private String createName;

    @ApiModelProperty(value = "建单时间")
    private Timestamp createDate;

    public void copy(MergeTaskRecordDao source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
